#include <iostream>
#include "mqttinterface.h"

using namespace std;

const string DFLT_SERVER_ADDRESS    { "tcp://localhost:1883" };
const string CLIENT_ID              { "Client_01" };
const string PERSIST_DIR            { "./persist" };

const string TOPIC                  { "hello" };
const string DATA_1                 { "11111111" };
const int QOS {1};

int main()
{
    printf("Hello World!\n");
    MqttInterface one;
    one.pub_init(DFLT_SERVER_ADDRESS, CLIENT_ID, PERSIST_DIR);
    one.pub_data(TOPIC, DATA_1, QOS);
    return 0;
}
